package com.wenkang.stu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wenkang.stu.mapper.MenuMapper;
import com.wenkang.stu.pojo.SysMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysMenuService extends ServiceImpl<MenuMapper, SysMenu> implements IService<SysMenu> {

    @Autowired
    private MenuMapper menuMapper;

    public List<SysMenu> selectMenusByUserId(String id) {
        return menuMapper.selectMenusByUserId(id);
    }

    public List<SysMenu> selectAllMenus() {
        return menuMapper.selectAllMenus();
    }

    public List<SysMenu> selectMenusWithRole() {
        return menuMapper.selectMenusWithRole();
    }
}
